<template>
  <div>
    <el-tooltip v-if="statusObj.value === 1" class="item" effect="dark" :content="'更新人:'+statusObj.operator+'-更新时间:'+statusObj.update_time" placement="top">
      <el-button type="success" size="mini" icon="el-icon-check" circle></el-button>
    </el-tooltip>
    <el-tooltip v-else-if="statusObj.value === 2" class="item" effect="dark" :content="'更新人:'+statusObj.operator+'-更新时间:'+statusObj.update_time" placement="top">
      <el-button type="warning" size="mini" icon="el-icon-edit" circle></el-button>
    </el-tooltip>
    <el-tooltip v-else class="item" effect="dark" :content="'更新人:'+statusObj.operator+'-更新时间:'+statusObj.update_time" placement="top">
      <el-button type="danger" size="mini" icon="el-icon-close" circle></el-button>
    </el-tooltip>
  </div>
</template>

<script>
  export default {
    name: 'VButton',
    props: {
      statusObj: {
        type: Object,
        require: true
      }
    }
  }
</script>
